using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace JustinAngel.MetroBlog.Tests
{
    public static class TestExtensions
    {
        public static void AssertIsOfType<TTarget>(this object obj)
        {
            Assert.IsTrue(obj.GetType() == typeof(TTarget), 
                string.Format("{0} is not of type {1}", obj.GetType().FullName, typeof(TTarget).FullName));
        }
    }


}